﻿using System;
using System.Collections.Generic;
using System.Text;
using System.Data;

namespace Controls.Args
{
    public class SummaryArgs : EventArgs
    {
        public SummaryArgs(string _columnName, DataRow _dataSource)
        {
            this._dataSource = _dataSource;
            this._columnName = _columnName;
        }

        public SummaryArgs(string _columnName, object _nowValue)
        {
            this._nowValue = _nowValue;
            this._columnName = _columnName;
        }

        private DataRow _dataSource;

        /// <summary>
        /// 控件设置相关信息
        /// </summary>
        public DataRow DataSource
        {
            get { return _dataSource; }
            set { _dataSource = value; }
        }

        private string _columnName;

        /// <summary>
        /// 字段名称 主要是为了方便
        /// </summary>
        public string ColumnName
        {
            get { return _columnName; }
            set { _columnName = value; }
        }

        private object _nowValue;

        public object NowValue
        {
            get { return _nowValue; }
            set { _nowValue = value; }
        }
    }
}
